<%@ Page Language="C#" MasterPageFile="~/Views\Home\test.master" Inherits="System.Web.Mvc.ViewPage" %>
 		<asp:Content ContentPlaceHolderID="test" runat="server">
 			<div class="tab_container">
   				<div class="sub_content">MY RESERVATIONS</div>
   				<div class="success" id="cancel_reservation_success">Reservation successfully cancelled.</div>
   				<table width="100%" cellspacing="0">
   					<thead>
   				  		<td width="60%">Book Title</td>
   				  		<td width="27%">Date of Reservation</td>
   				  		<td width="13%"></td>
   				  	</thead>   				  		
   				  	<tbody id="tbl_reservations">
					<% foreach (TestProject.Reservation item in (ViewData["reservations"] as List<TestProject.Reservation>)) {%>
					<tr id="<%= Html.Encode(item.reservation_ID) %>_row">
						<td class="book_row" align="center" id="<%= Html.Encode(item.book_isbn) %>_title"><%= Html.Encode(item.bookTitle) %></td>
						<td align="center" id="<%= Html.Encode(item.reservation_ID) %>_start"><%= Html.Encode(item.reservation_date_str) %></td>
						<td align="center"><input type="button" value="cancel" class="cancel_reservation" id="<%= Html.Encode(item.reservation_ID) %>" /></td>
					</tr>
					<% } %>
					</tbody>
			  	</table>
			</div> 			
 		</asp:Content>
 	
 	
